#ifndef _USART_H_
#define _USART_H_

#ifdef __cplusplus
 extern "C" {
#endif

#include "stm32f10x.h"
#include <rtthread.h>

void wing_usart1_init(
    uint32_t baudrate,
    uint16_t parity,
    uint16_t stopbits);
    
void Board_USART_SendByte(USART_TypeDef* USARTx,unsigned char data);

void wing_clear_buffer(u8* p, u16 len); 

void rt_hw_console_output(const char *str);
char rt_hw_console_getchar(void);

#ifdef __cplusplus
}
#endif

#endif
/***End of File***/
